<?php
session_start();

$title = $_POST['title'];
$desc = $_POST['description'];
 echo $title;
 echo $desc;
include '../DBLibrary/config.php';
include '../DBLibrary/openDB.php';

    mysql_select_db("rotaract");
    $query = "INSERT INTO announcement(title, desc) VALUES('$title', '$desc')";
    mysql_query($query);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Rotaract DLSU</title>
<meta http-equiv="Content-Type" content="text/html"/>
<meta name="robots" content="index,follow"/>
<meta name="distribution" content="global"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="container2">
  <div id="main2">
    <table width="535" height="500" cellspacing="0" cellpadding="0">
      <tr>
        <td class="main_nav">
            <div id="main_text2">
            <h2>Announcement Added!</h2>
          </div>
    
    
          </td>
        
      </tr>
    </table>
  </div>
  </div>
</body>
</html>
